"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    const { INTEGER, BOOLEAN, STRING, DATE } = Sequelize;
    await queryInterface.createTable("notifi", {
      id: { type: INTEGER, primaryKey: true, autoIncrement: true },
      title: STRING(100),
      content: STRING(300),
      is_read: { type: BOOLEAN, defaultValue: false },
      created_at: DATE
    });
  },

  async down(queryInterface, Sequelize) {
    await queryInterface.dropTable("notifi");
  },
};
